<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
   
</head>
<style type="text/css" > 
     
    .container::after{
        content: '.';
        display: block;
        width: 0px;
        height: 100%;
        visibility: hidden;
        border-right: 1px solid transparent;
    }
</style>
<body>
    <div style="overflow: scroll;" id="app">
        <div class="container"  style="display: flex;">
            <div v-for="(a,index) in  3"
                @click="fix($event,index)" :data-idx="index" style="flex-shrink: 0; margin: 20px;text-align: center; line-height: 100px;overflow: hidden;   border: 1px solid red; width: 180px;">
                {{a}}-{{index}}</div>
        </div>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                data: [1, 2, 3, 4, 5, 65, 6, , 32, 321, 312, 3]
            },
            methods:{
                fix(e,a){
                    console.log(e,a)
                }
            }
        })
    </script>
</body>

</html>